home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / PInterfaces / Scrap.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  1.8 KB  |  94 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Scrap.p
  3.  
  4.      Contains:    Scrap Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT Scrap;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __SCRAP__}
  30. {$SETC __SCRAP__ := 1}
  31.  
  32. {$I+}
  33. {$SETC ScrapIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$PUSH}
  43. {$ALIGN MAC68K}
  44. {$LibExport+}
  45.  
  46. TYPE
  47.     ScrapStuff = RECORD
  48.         scrapSize:                LONGINT;
  49.         scrapHandle:            Handle;
  50.         scrapCount:                INTEGER;
  51.         scrapState:                INTEGER;
  52.         scrapName:                StringPtr;
  53.     END;
  54.  
  55.     PScrapStuff = ^ScrapStuff;
  56.     ScrapStuffPtr = ^ScrapStuff;
  57.  
  58.  
  59. FUNCTION InfoScrap: ScrapStuffPtr;
  60.     {$IFC NOT GENERATINGCFM}
  61.     INLINE $A9F9;
  62.     {$ENDC}
  63. FUNCTION UnloadScrap: LONGINT;
  64.     {$IFC NOT GENERATINGCFM}
  65.     INLINE $A9FA;
  66.     {$ENDC}
  67. FUNCTION LoadScrap: LONGINT;
  68.     {$IFC NOT GENERATINGCFM}
  69.     INLINE $A9FB;
  70.     {$ENDC}
  71. FUNCTION GetScrap(hDest: Handle; theType: ResType; VAR offset: LONGINT): LONGINT;
  72.     {$IFC NOT GENERATINGCFM}
  73.     INLINE $A9FD;
  74.     {$ENDC}
  75. FUNCTION ZeroScrap: LONGINT;
  76.     {$IFC NOT GENERATINGCFM}
  77.     INLINE $A9FC;
  78.     {$ENDC}
  79. FUNCTION PutScrap(length: LONGINT; theType: ResType; source: UNIV Ptr): LONGINT;
  80.     {$IFC NOT GENERATINGCFM}
  81.     INLINE $A9FE;
  82.     {$ENDC}
  83.  
  84. {$ALIGN RESET}
  85. {$POP}
  86.  
  87. {$SETC UsingIncludes := ScrapIncludes}
  88.  
  89. {$ENDC} {__SCRAP__}
  90.  
  91. {$IFC NOT UsingIncludes}
  92.  END.
  93. {$ENDC}
  94.